<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/data.js"></script>

</head>
<body>
<div id="div1">
    <ul>
        <li>{{name}}</li>
        <li>{{age}}</li>
        <li>{{sex}}</li>
    </ul>
    <div v-html="html"></div>
    <input type="text" v-model="name">
    <input type="text" v-model="age">
    <input type="text" v-model="sex">
    <a :href="href" target="_blank">Vue</a>
    <input :type="type">
</div>
<script src="js/vue.js"></script>
<script>
<!--语法糖-->
    new Vue({
        el: '#div1',
        data: {
            name: 'zhang.san',
            age: 15,
            sex: 'man',
            html:'<p> <i><b>hello vue</b></i></p>',
            href:'https://cn.vuejs.org/',
            type:'checkbox'
        }
    })
</script>
</body>
</html>